package com.tizona.entity;


public class Parameter
{

    public Parameter(String s)
    {
        value = s;
    }

    public String asString()
    {
        return value;
    }

    public int asInteger()
    {
        try
        {
            return Integer.parseInt(value);
        }
        catch(Exception exception)
        {
            return 0;
        }
    }

    public float asFloat()
    {
        try
        {
            return Float.parseFloat(value);
        }
        catch(Exception exception)
        {
            return 0.0F;
        }
    }

    private String value;
}
